<div class="module-content module-vertical" *ngIf="object">
    <div class="module-header">
        <div class="module-header-title">
            <nz-breadcrumb>
                <nz-breadcrumb-item>
                    <a [routerLink]="'list'">客户列表</a>
                </nz-breadcrumb-item>
                <nz-breadcrumb-item>
                    客户信息
                </nz-breadcrumb-item>
            </nz-breadcrumb>
        </div>
    </div>
    <div class="module-body module-body-row">
        <div class="panel">
            <div class="panel-body grid-column-3">
                <nz-form-item>
                    <nz-form-label [nzSpan]="6" nzFor="name">客户名称</nz-form-label>
                    <nz-form-control [nzSpan]="18">
                      <input nz-input name="name" type="text" [(ngModel)]="object.name" required>
                    </nz-form-control>
                </nz-form-item>
                <nz-form-item>
                    <nz-form-label [nzSpan]="6" nzFor="code">客户编码</nz-form-label>
                    <nz-form-control [nzSpan]="18">
                      <input nz-input name="code" type="text" [(ngModel)]="object.code">
                    </nz-form-control>
                </nz-form-item>
                <nz-form-item>
                    <nz-form-label [nzSpan]="6" nzFor="level">客户级别</nz-form-label>
                    <nz-form-control [nzSpan]="18">
                        <nz-select name="level" [(ngModel)]="object.level" required>
                            <nz-option [nzValue]="0" nzLabel="普通客户"></nz-option>
                            <nz-option [nzValue]="1" nzLabel="优惠客户"></nz-option>
                            <nz-option [nzValue]="2" nzLabel="VIP客户"></nz-option>
                        </nz-select>
                    </nz-form-control>
                </nz-form-item>
                <nz-form-item>
                    <nz-form-label [nzSpan]="6" nzFor="person"> 联系人</nz-form-label>
                    <nz-form-control [nzSpan]="18">
                      <input nz-input name="person" type="text" [(ngModel)]="object.person">
                    </nz-form-control>
                </nz-form-item>
                <nz-form-item>
                    <nz-form-label [nzSpan]="6" nzFor="phone">联系电话</nz-form-label>
                    <nz-form-control [nzSpan]="18">
                      <input nz-input name="phone" type="text" [(ngModel)]="object.phone">
                    </nz-form-control>
                </nz-form-item>
                <nz-form-item>
                    <nz-form-label [nzSpan]="6" nzFor="address">联系地址</nz-form-label>
                    <nz-form-control [nzSpan]="18">
                      <input nz-input name="address" type="text" [(ngModel)]="object.address">
                    </nz-form-control>
                </nz-form-item>
                <nz-form-item>
                    <nz-form-label [nzSpan]="6" nzFor="company">单位名称</nz-form-label>
                    <nz-form-control [nzSpan]="18">
                      <input nz-input name="company" type="text" [(ngModel)]="object.company">
                    </nz-form-control>
                </nz-form-item>
                <nz-form-item>
                    <nz-form-label [nzSpan]="6" nzFor="tel">单位电话</nz-form-label>
                    <nz-form-control [nzSpan]="18">
                      <input nz-input name="tel" type="text" [(ngModel)]="object.tel">
                    </nz-form-control>
                </nz-form-item>
                <nz-form-item style="grid-column: 1 / -1;">
                    <nz-form-label [nzSpan]="2" nzFor="description">客户描述</nz-form-label>
                    <nz-form-control [nzSpan]="22">
                      <textarea nz-input name="description" rows="3" [(ngModel)]="object.description"></textarea>
                    </nz-form-control>
                </nz-form-item>
              
            </div>
        </div>
    </div>
    <div class="module-footer">
        <div class="module-footer-left">
            <button nz-button nzType="primary" nzDanger (click)="delete()">删除</button>
        </div>
        <div class="module-footer-right">
            <button nz-button nzType="default" (click)="cancel()">返回</button>
            <button nz-button nzType="primary" (click)="save()">保存</button>
        </div>
    </div>
</div>

